package swing.form.fields;

import javax.swing.*;
import java.util.Date;

public class DateField extends JSpinner{

    /**
	 * 
	 */
	private static final long serialVersionUID = 2350696999350796481L;

	public DateField(Date date) {
        setModel(new SpinnerDateModel());
        setEditor(new JSpinner.DateEditor(this, "yyyy-MM-dd hh:mm:ss"));
        setValue(date);
    }
}
